import http from '@/utils/http'
let date = new Date()
let nowMonth = date.getMonth() + 1
if (nowMonth >= 1 && nowMonth <= 9) {
  nowMonth = '0' + nowMonth
}
// 司机信息
export function getDriverUserApi() {
  return http({
    url: '/driver/users',
    method: 'get',
  })
}
// 任务总量
export function getTaskPortApi() {
  return http({
    url: '/driver/users/taskReport',
    data: {
      year: new Date().getFullYear().toString(),
      month: nowMonth,
    },
  })
}
// 获取车辆信息
export function getTruckInfoApi() {
  return http({
    url: '/driver/users/truck',
  })
}
